home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
nhx
/
gototop.frm
< prev
next >
Wrap
Text File
|
1995-05-08
|
1KB
|
62 lines
VERSION 2.00
Begin Form gototop
Caption = "Go To Topic"
ClientHeight = 2865
ClientLeft = 1140
ClientTop = 3360
ClientWidth = 3060
Height = 3270
Icon = GOTOTOP.FRX:0000
Left = 1080
LinkMode = 1 'Source
LinkTopic = "Form2"
ScaleHeight = 2865
ScaleWidth = 3060
Top = 3015
Width = 3180
Begin CommandButton Command1
Caption = "GoToIt!"
Default = -1 'True
Height = 375
Left = 120
TabIndex = 1
Top = 2400
Width = 2775
End
Begin ListBox List1
Height = 2175
Left = 120
TabIndex = 0
Top = 120
Width = 2775
End
End
Sub Command1_Click ()
DoGoToTopic
End Sub
Sub DoGoToTopic ()
a$ = list1.text
OldTopic% = CurrentTopic%
NewTopic% = FindTopic(a$)
If NewTopic% Then
HideTopic OldTopic%
Unload GoToTop
ShowTopic NewTopic%
End If
End Sub
Sub Form_Load ()
For i% = 0 To TopicCount%
a$ = MainForm.TextTopic(i%).tag
list1.AddItem a$
Next i%
End Sub
Sub List1_DblClick ()
DoGoToTopic
End Sub